package com.sry.blog.sys.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * InnoDB free: 10240 kB; (`article_id`) REFER `blog/article`(`id`) ON UPDATE CASCA
 * </p>
 *
 * @author SR_Y
 * @since 2022-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("content")
@ApiModel(value="Content对象", description="InnoDB free: 10240 kB; (`article_id`) REFER `blog/article`(`id`) ON UPDATE CASCA")
@Builder
public class Content implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "评论ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评论对对应的文章ID")
    private Integer articleId;

    @ApiModelProperty(value = "评论人的ID")
    private Integer userId;

    @ApiModelProperty(value = "回复评论的ID")
    private Integer replyId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "留言时间")
    private Date time;

    @ApiModelProperty(value = "评论类型【0：读者评论】【1：作者回复】")
    private Integer type;

    @ApiModelProperty(value = "留言者的IP地址")
    private String ip;

    @ApiModelProperty(value = "留言的状态 【0：未读】【1：已读】")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除：【0：正常】【1：逻辑删除】")
    private Integer isdelete;


}
